//
//  OrderM.h
//  同盟圈
//
//  Created by 洛水寒 on 16/4/19.
//  Copyright © 2016年 ym. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface OrderM : NSObject

@property(nonatomic) NSString *order_id;
@property(nonatomic) int order_type; //订单类型（1待付款,2已付款,3完成订单）
@property(nonatomic) int distribution_status; //发货状态（0：未发送，1：已发送）////配送状态
@property(nonatomic) int comment_status; //发货状态（0：未发送，1：已发送）

@property(nonatomic) int evaluation_state;//评价状态 0未评价，1已评价，2已过期未评价'
@property(nonatomic) int order_state; //订单状态（1生成订单,2确认订单,3取消订单,4作废订单,5交易完成,6完成订单）      //全部订单状态：0(已取消)10(默认):未付款;20:已付款;30:已发货;40:已收货;
@property(nonatomic) int refund_state;//退款状态:0是无退款,1是部分退款,2是全部退款

@property(nonatomic) float real_amount; //
@property(nonatomic) float pay_amount; //未付金额
@property(nonatomic, copy) NSString *shop_id;
@property(nonatomic, copy) NSString *shop_name;
@property(nonatomic, copy) NSString *channel;
@property(nonatomic, copy) NSString *channel_name;
@property(nonatomic, copy) NSString *goodsName;
@property(nonatomic) float amount; //

@property(nonatomic) int pay_status; //支付状态（0未支付,1已支付,2已申请退款）////
@property(nonatomic) int status;////订单状态
@property(nonatomic) int refund;////退款步骤
@property(nonatomic) int delivery;
@property(nonatomic) int self_send;

@property(nonatomic, copy) NSString *isDiscount;//是否为折扣商品

//@property(nonatomic) int refundment_status; //（0：申请中，1已取消申请）
//@property(nonatomic) int refundment_type; //退款状态（0：申请退款，1：退款失败 2:退款成功）

@property(nonatomic, copy) NSString *city_code;
@property(nonatomic, copy) NSString *area_code;
@property(nonatomic, copy) NSString *province_code;
@property(nonatomic, copy) NSString *mobile;


@property(nonatomic) BOOL selected;

@property(nonatomic,retain)NSArray *goods_list;

- (id)initWithOrderDict:(NSDictionary *)dict;

//// 待付款
//- (BOOL)ispending;
//// 已付款
//- (BOOL)ispaid;
//// 完成订单
//- (BOOL)iscomplete;


// 待付款
- (BOOL)ispending;
// 待发货 Shipping
- (BOOL)Shipping;

// 待收货 received
- (BOOL)received;
//evaluate 评价
- (BOOL)evaluate;
//refund退款
- (BOOL)refunding;


@end
